package com.heima.apis.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;


@Api(value = "频道管理", tags = "channel", description = "频道管理API")
public interface AdChannelControllerApi {

    @ApiOperation("频道分页列表查询")
    ResponseResult findBYNameAndPage(ChannelDto dto);
    @ApiOperation("新增频道信息")
    ResponseResult save(AdChannel adChannel);
    @ApiOperation("修改频道信息")
    ResponseResult update(AdChannel adChannel);
    @ApiOperation("删除频道信息")
    ResponseResult deleteById(@ApiParam("文档Id") Integer id);
    @ApiOperation("查询全部频道")
    ResponseResult findAll();
}
